package org.gd.hellojavacore.exceptions;

public class App {

    public static void main(String ... args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    throw new Exception();
                } catch (Throwable e) {
                    for (StackTraceElement element: e.getStackTrace()) {
                        System.out.println("<line>" + element.toString() + "</line>");
                    }
                }
            }
        }).start();
    }
}
